<div class="container-fluid" style="padding: 20px 10px 0px 10px">
    <div class="row-fluid">
        <div class="well">
            <ul class="nav nav-tabs">
                <li class="active"><b>卖家审核</b></li>
            </ul>
            <div id="myTabContent" class="tab-content">
                <div class="tab-pane active in" id="home">
                    <form id="formid" action="#" method="post">
                        <p>审核状态：
                            <select name="check">
                                <option value="1">审核通过</option>
                                <option value="-2">审核不通过</option>
                            </select>
                        </p>
                        <input type="hidden" value="<?=I('get.custid')?>" name="custid" />
                        <input type="hidden" value="1" name="dosubmit" />
                    </form>
                </div>
                <div class="btn-toolbar">
                    <?php if($wmsg){?>
                    <div style="margin-left:72px;color:red"><?=$wmsg?></div>
                    <?php }else{?>
                    <button class="btn btn-primary" style="margin-left:120px;margin-top:15px" id="btn-save"><i class="icon-save"></i> 审核</button>
                    <?php }?>
                </div>
            </div>
        </div>
    </div>
</div>
<script>
    $(function(){
        $('#btn-save').click(function(){
            $.post('/saler/salercheck',{'check':$('select[name="check"]').val(),'custid':$('input[name="custid"]').val()},function(data){
                if(data.code == 1){
                    showmsg('操作成功',data.code);
                }else{
                    showmsg('操作失败',data.code);
                }
            },'json');
        });
    });
</script>